How to avoid overwriting of k v in dictionaries